package com.varton.demo;

import com.varton.demo.abstracts.AbstractFactory;
import com.varton.demo.method.AntaFactroy;
import com.varton.demo.method.MethodFactory;

/**
 *
 * @author varton
 */
public class App {
    public static void main(String[] args) {
//        MethodFactory factory = new AntaFactroy();
//        Shoe shoe = factory.newInstance();
//        System.out.println(shoe);

        MethodFactory factory = AbstractFactory.getFactory("anta");
        Shoe shoe = factory.newInstance();
        System.out.println(shoe);
    }
}